<%@ page contentType="text/html;charset=utf-8" language="java"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<html:html lang="true">
    <head>
        <title><bean:message key="hello.jsp.title"/></title>
        <html:base/>
    </head>


    <body bgcolor="white"><p>

        <h2><bean:message key="hello.jsp.page.heading"/></h2><p>
        <html:errors property="userName" /><p>


        <logic:present name="personbean" scope="request">
            <h2>
                <bean:message key="hello.jsp.page.hello"/>
                <bean:write name="personbean" property="userName"/>!<p>
        </logic:present>

        <html:form action="/HelloWorld.do" focus="userName">
            <bean:message key="hello.jsp.prompt.person"/>
            <html:text property="userName" size="16" maxlength="16"/><br>
            <html:submit property="submit" value="Submit"/>
            <html:reset/>
        </html:form>
        <br>
    </body> 
</html:html>


